package gameam.business;

//answer class
public class MCAnswer
{
	//data members
	private int _marksAwarded;
	private String _answerString;
	private boolean _isChosen;
	
	//default constructor
	public MCAnswer()
	{
		_marksAwarded = 0;
		_answerString = "";
		_isChosen = false;
	}
	
	//overloaded constructor
	public MCAnswer(int marksAwarded, String answerString)
	{
		_marksAwarded = marksAwarded;
		_answerString = new String(answerString);
		_isChosen = false;
	}
	
	public int MarkForAnswer()
	{
		return _marksAwarded;
	}

	public void ToggleSelection()
	{
		_isChosen = !_isChosen;
	}
	
	public boolean IsChosen()
	{
		return _isChosen;
	}
	
	public String GetText()
	{
		return _answerString;
	}
}